<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>

<div class="container" id="main">
  <div class="row">
    <div class="col-md-9" role="main">
      <div class="alert alert-success"><?php $this->archiveTitle(array(
            'category'  =>  _t('您正在查看: %s 分类下的文章'),
            'search'    =>  _t('您正在查看: 包含在关键字 %s 下的文章'),
            'tag'       =>  _t('您正在查看: 包含在标签 %s 下的文章'),
            'author'    =>  _t('您正在查看: %s 发布的文章')
          ), '', ''); ?></div>
      <?php if ($this->have()): ?>
        <?php while($this->next()): ?>
          <div class="panel">
            <div class="panel-body">
              <h3 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h3>
              <div class="post-meta">
                <span><?php _e('作者: '); ?><a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a> | </span>
                <span><?php _e('时间: '); ?><?php $this->date('F j, Y'); ?> | </span>
                <span><?php _e('分类: '); ?><?php $this->category(','); ?> | </span>
                <span><a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 条评论', '%d 条评论'); ?></a></span>
              </div>
              <div class="post-content"><?php $this->content('- 阅读剩余部分 -'); ?></div>
            </div>
          </div>
        <?php endwhile; ?>
      <?php else: ?>
        <div class="panel-body">
          <h3 class="post-title"><?php _e('没有找到内容'); ?></h3>
        </div>
      <?php endif; ?>
      <?php $this->pageNav('&laquo; ', ' &raquo;',3,'...',
          array(
            'wrapClass'     =>  'pagination',
            'itemTag'       =>  'li',
            'textTag'       =>  'span',
            'currentClass'  =>  'active',
            'prevClass'     =>  'prev',
            'nextClass'     =>  'next')); ?>
    </div>
    <!-- end #col-md-8 -->
    <div class="col-md-3">
      <?php $this->need('sidebar.php'); ?>
    </div>
  </div>
</div>
<?php $this->need('footer.php'); ?>
